package com.wjf.shortlink.shortlink.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.List;

//跳转域名白名单配置文件
@Data
@Component
@ConfigurationProperties(prefix = "short-link.goto-domain.white-list")
public class GotoDomainWhiteListConfiguration {
    //是否开启白名单
    private Boolean enabled;
    //名称
    private String names;
    //可跳转的原始链接域名
    private List<String> details;
}
